<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {
    $router->resource('/city',CityController::class);
    $router->get('/', 'HomeController@index')->name('admin.home');
    $router->resource('/workshop',WorkshopController::class);
    $router->resource('/park',ParkController::class);//园区管理
    $router->resource('/parkArea',ParkAreaController::class);//园区面积管理
    $router->resource('/parkFormat',ParkFormatController::class);
    $router->resource('/parkType',ParkTypeController::class);
    $router->resource('workshop-contact-types', WorkshopContactTypeController::class); //盘源联系人
    $router->resource('/news',NewsController::class);//单页管理
    $router->resource('/website',WebsiteController::class);//网站设置
    $router->any('/api/area','ParkController@area');
    $router->any('/api/area1','ParkController@area1');

    $router->resource('workshop-hangyes', HangyeController::class);

//    $router->any('/api/type','BrowseRecordsController@type');
    /**
     * 经纪人列表
     */
    $router->resource('agents', Agent\AgentController::class); //经纪人
    $router->resource('agent-departments', Agent\AgentDepartmentController::class); //部门
    $router->resource('agent-positons', Agent\AgentPositonController::class);//职位
    $router->resource('agent-sliders', Agent\AgentSlier::class);//轮播图
    $router->resource('agent-yuyues', Agent\AgentYuyueController::class);
    $router->resource('agent-tousus', Agent\AgentTousuController::class);
    /**

     * 权限
     */
    $router->resource('/role',RoleController::class);
    $router->resource('/permission',PermissionController::class);
    /**

     * 提交咨询
     */
    $router->resource('agent-counses', Agent\AgentCounselController::class);
    //部门
    $router->resource('user-department',UserDeparmentController::class);
    //用户信息
    $router->resource('users', UsersController::class);

    $router->resource('usersTree', UserTreeController::class);


    //盘源审核
    $router->resource('workshop-review', workshopReviewController::class);
    //盘源公告
    $router->resource('gonggaos', GonggaoController::class);
    //
    $router->resource('user-shenhes', UserShenheController::class);


    //客户管理
    $router->resource('customers', Customer\CustomerController::class);
    //
    $router->resource('customer-areas', Customer\CustomerAreaController::class);

    $router->resource('customer-peidians', Customer\CustomerPeidianController::class);
    $router->resource('customer-hangyes', Customer\CustomerHangyeController::class);
    $router->resource('customer-sources', Customer\CustomerSourceController::class);
    $router->resource('customer-huanpings', Customer\CustomerHuanpingController::class);
    $router->resource('customer-xuqius', Customer\CustomerXuqiuController::class);
    $router->resource('customer-xiaofangs', Customer\CustomerXiaofangController::class);
    $router->resource('customer-wuyes', Customer\CustomerWuyeController::class);
    $router->resource('customer-big-departs', CustomerBigDepartController::class);
    $router->resource('customer-second-departs', CustomerSecondDepartController::class);
    $router->resource('customer-records', FollowRecordController::class);
    $router->resource('workshop-yuyues', WorkshopYuyueController::class);
    $router->resource('toutiaos', JinriController::class);
    $router->resource('baidu-projects', HrefController::class);//配置
});

